package icu.lookyousmileface.functionfour;

import java.util.function.Consumer;

/**
 * @author starrysky
 * @title: ConsumerUse
 * @projectName Juc_Pro
 * @description: Consumer 消费型接口
 * @date 2021/1/2911:50 下午
 */
public class ConsumerUse {
    public static void main(String[] args) {
        Consumer<String> consumer = (str)->{System.out.println("消费："+str);};
        consumer.accept("5元");
    }
}
